﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using FileSystem.Models;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;

namespace FileSystem.ViewModels {
    /// <summary>
    /// 目录项ViewModel
    /// </summary>
    public class DirItemViewModel : ViewModelBase {
        // ******** 构造函数

        /// <summary>
        /// 目录项ViewModel
        /// </summary>
        public DirItemViewModel() {

        }

        // ******** 绑定属性

        /// <summary>
        /// 目录项
        /// </summary>
        public DirItem DirItem {
            get => _dirItem;
            set => Set(nameof(DirItem), ref _dirItem, value);
        }

        /// <summary>
        /// 目录项
        /// </summary>
        private DirItem _dirItem;

        /// <summary>
        /// 图片
        /// </summary>
        public string Image {
            get => _image;
            set => Set(nameof(Image), ref _image, value);
        }

        /// <summary>
        /// 图片
        /// </summary>
        private string _image;



        // ******** 绑定命令

        /// <summary>
        /// comment
        /// </summary>
        private RelayCommand<Type> _clickDirItemCommand;

        /// <summary>
        /// comment
        /// </summary>
        public RelayCommand<Type> ClickDirItemCommand =>
            _clickDirItemCommand ?? (_clickDirItemCommand = new RelayCommand<Type>(async type => await ClickDirItemCommandFunction(type)));

        public async Task ClickDirItemCommandFunction(Type type) {
        }

        // ******** 公开变量

        // ******** 私有变量

    }
}